Javascript delay/wait/sleep

Hello guys, new to retool and the community... Sorry for this novice question. Should be an easy hitter I imagine.
We are attempting to us JS to loop through some data and fire off some API calls. However, we are hitting an API rate limit issue. We are limited to 4 calls per second. My initial thought was to add a Utilities.sleep(1000); line inside my loop to slow it down to 1 API request being triggered every 1 second. I don't believe the utilities function works in retool. We have been pursuing utils method, setTimeout function, LoDash (_.delay), etc. but so far everything just fires off the API calls without delay. Perhaps I am writing this incorrectly.
Can anybody enlighten me on how to properly delay within retool?
Thanks,
Jonathan