TS

const formatPrice = (cents: number, currency: string) => {
const formatter = Intl.NumberFormat('en-US', { style: 'currency', currency });
return formatter.format(cents);
}