export const formatDuration = (range, { includeMilliseconds = false } = {}) => {
Formats a duration in milliseconds using named options.
Target style API. Preferred for new code.
Formatters
Source: formatters/formatTimeRange.mjs
Target Style
Legacy Style