Reset a cooldown for everyone, every hour (Discord.js)

I’m making a Mudae-like bot for my friends and I wanted to add the same cooldown system they use for the rolls (which resets after a specific time, and not according to the use of the command or not)

To put it clear :

It’s not “You can’t roll anything for 1 hour after your last roll command”

It’s more like “Every hour, everyone can roll again, and they can do it once until the next roll reset”

I’m not sure where to start, because for now I use a normal cooldown system (which depends on the user => “You can’t roll anything for 1 hour after your last roll command”) and it’s possible I have to start from scratch.

What should I do to start ?