function clearTimeoutclearTimeout(id?: number): voidDeprecatedCancels a scheduled action initiated by setTimeout() const id = setTimeout(() => {console.log('hello');}, 500); // ... clearTimeout(id); Parametersoptionalid: numberReturn Typevoid