ms("2.5 hrs") // 9000000
ms("9000000") // 3h
ms("9000000", { long: true ) // 3 hours
The above code returns "3h" or "3 hours" when a total of 2.5 hrs in milliseconds is parsed.
If there are technical limitations to returning accurate string representations, it would be ideal to provide an example and explanation in the repository readme.md.