@tremendous/help
    Preparing search index...

    Function formatTin

    • Formats a TIN with hyphens.

      Parameters

      • tin: string

        The TIN to format.

      • options: FormatTinOptions = ...

        The options for formatting the TIN. {boolean} isBusinessTin: defaults to false for SSN format, but can be set to true for EIN format.

      Returns string

      The formatted TIN.

      SSN format:
      formatTin("123456789"); // "123-45-6789"
      formatTin("123456789", { isBusinessTin: false }); // "123-45-6789"

      EIN format:
      formatTin("123456789", { isBusinessTin: true }); // "12-3456789"
      formatTin("987654321", { isBusinessTin: true }); // "98-7654321"