So I made a work command with a cooldown that shows exactly how long you have to wait until you can work again. The cooldown works, but it says time.seconds and time.minutes is undefined. Here is my code:

```
const Discord = require("discord.js");
const db = require('quick.db')
const ms = require("ms");

module.exports = class economy {
  constructor(){
      this.name = 'work',
      this.alias = ['work'],
      this.usage = 's!work',
      this.description = 'Work to get paid',
      this.runnable = 'true'
}

async run(bot, message, args) {

let timeout = 600000 
let amount = Math.floor(Math.random() * 25) + 15;

var jobs = ["Miner", "Bartender", "Cashier", "Cleaner", "Drugdealer", "Assistant", "Nurse", "Cleaner", "Teacher", "Accountants", "Security Guard", "Sheriff", "Lawyer", "Dishwasher", "Electrician", "Singer", "Dancer"];

let work = await db.fetch(`work_${message.author.id}`);

if (work !== null && timeout - (Date.now() - work) > 0) {
    let time = ms(timeout - (Date.now() - work));

    message.channel.send(`You already worked, try again in **${time.minutes}m ${time.seconds}s**!`)
} else {
  var job = jobs[Math.floor(Math.random() * jobs.length)];

  message.channel.send(`You worked as a ${job} and earned ${amount} <:shart:646075915293687810>`)

db.add(`money_${message.author.id}`, amount)
db.set(`work_${message.author.id}`, Date.now())

}
}   
}

```

How can I fix this?