Homey Script - how to create AbortController() for fetch

Looks like the same post as Bug? - Homey Script card keeps running