What is the process for creating a command to terminate a Discord bot using JavaScript, Node.js, and Discord.js?

I am looking for guidance on how to implement a command that allows me to shut down my Discord bot. Could someone provide code examples or detailed steps to achieve this using JavaScript, Node.js, and Discord.js?