how to check if user is typing discord js

JavaScript
client.on('typingStart', (channel, user) => {
  // code here
};

Source

Also in JavaScript: