const toChars = (n) => `${n >= 26 ? toChars(Math.floor(n / 26) - 1) : ''}${'ABCDEFGHIJKLMNOPQRSTUVWXYZ'[n % 26]}`;
const toChars = (n: number): string => `${n >= 26 ? toChars(Math.floor(n / 26) - 1) : ''}${'ABCDEFGHIJKLMNOPQRSTUVWXYZ'[n % 26]}`;
toChars(0); // AtoChars(1); // BtoChars(25); // ZtoChars(26); // AAtoChars(27); // ABtoChars(51); // AZtoChars(701); // ZZtoChars(702); // AAAtoChars(703); // AAB