This moves all of the pretty timestamp conversion logic into TypeScript. There should be no effective changes to the logic here. Two uses of timeAgo outside the file were converted to import the function directly instead of using the version on window.booru - the version attached to window.booru is preserved for userscript compatibility only.
This has 100% test coverage in unit tests and has also been manually integration tested.
This moves all of the pretty timestamp conversion logic into TypeScript. There should be no effective changes to the logic here. Two uses of timeAgo outside the file were converted to import the function directly instead of using the version on window.booru - the version attached to window.booru is preserved for userscript compatibility only.
This has 100% test coverage in unit tests and has also been manually integration tested.