How to make an uptime command in tmi.js

im making a tmi.js chat bot and i need to know how to make an uptime command, any ideas

Get the stream and compare started_at to the current time.