This is because we expose the $moment() function, not the top level moment object that has the duration function hanging under it.
So to answer the question directly - no it isn't possible today.
Please considering raising an issue and we can look if its possible to add support. Although the whole moment library is no longer maintained so not sure how much we want to expand use of it if there are better alternatives.