secs it is ms, but for seconds. import ms from 'ms'; function secs(...args) { return Math.round(ms(...args) / 1000);}