<!---
time-difference shows the relative time difference between a date and now.
@param {string} date
@param {string} locale
@param {("year"|"quarter"|"month"|"week"|"day"|"hour"|"minute"|"second")} units
@param {boolean} live
@param {integer} interval (in seconds)
--->
Idea from @hexagoncircle
Example somewhere in a component definition file:
Also this might generate some relevant JSON for autocomplete in IDEs: https://mastodon.social/@khalidabuhakmeh/110225863097859563
https://github.com/JetBrains/web-types