export function normalizeTin(value: string): string {
  return value.replace(/\D/g, "").slice(0, 10);
}

export function isValidTin(tin: string): boolean {
  return /^\d{10}$/.test(tin.trim());
}

export function normalizeLicenseNo(value: string): string {
  return value.trim();
}

export function isValidLicenseNo(licenseNo: string): boolean {
  return normalizeLicenseNo(licenseNo).length > 0;
}
