typescript how to do a timeout code example Example: timeout typescript setTimeout(() => { console.log('hi'); }, 500);