TypeScript: Abort or cancel a scheduled function

This is very helpful, thank you so much!

I’ll definitely take a look into these types of things, it’s definitely in my interests to make my code work better!