W celu oczekiwania zasięgu JavaScript

var total_pages = 13
var pages = [...Array(13).keys()];
for await(page of pages){
  //
}
Ugliest Unicorn