Throws a TypeError with a generated error message with ANSI-colors for easier console output readability.