code: function createTimerPromise(commandName, timeout) {
  	let timer;
  
  	const promise = new Promise((resolve, reject) => {
  		if (timeout) {
  			timer = setTimeout(() => reject(new UserCommandExecutionTimeout(commandName)), timeout);
  		}
  	});
  
  	promise.clear = () => clearTimeout(timer);
  
  	return promise;
  }
docs: Create a promise timer
  
  Useful when using Promise.race.
  
  @param {number} timeout