diff --git a/dates/dates.ts b/dates/dates.ts index 6874369..1f18bdb 100644 --- a/dates/dates.ts +++ b/dates/dates.ts @@ -218,4 +218,4 @@ export const getFullRelativeTime = (date: DateTime): string => `${getDateHourMin * formatDuration(getMsOffset(startTs)) // time taken * ``` */ -export const formatDuration = (duration: number) => stdFormat(duration, { ignoreZero: true }) +export const formatDuration = (duration: number): string => stdFormat(duration, { ignoreZero: true })