The numeric value to format (e.g., 2)
The time unit (e.g., 'days', 'hours')
Optionallocale: stringOptional locale string
The formatting style (default: 'narrow')
The numeric formatting preference (default: 'always')
The localized relative time string
Returns a localized relative time string using
Intl.RelativeTimeFormat. Falls back to a basic string representation if formatting fails.