Review localized currency display

src/currency-display.tsTypeScript
@@ -0,0 +1,14 @@
1+export type SupportedCurrency = "USD" | "JPY" | "KWD";
2+
3+export function formatCurrency(
4+ amountMinor: number,
5+ currency: SupportedCurrency,
6+ locale: string,
7+): string {
8+ const majorAmount = Math.abs(amountMinor) / 100;
9+
10+ return new Intl.NumberFormat("en-US", {
11+ style: "currency",
12+ currency,
13+ }).format(majorAmount);
14+}