download multiple files on new tabs using javascript

I am tasked to download the first 25 books from https://www.gutenberg.org/ but I need to download everything at once. Here’s what I have so far.

for (var i = 0; i < 25; i++) {
        var link = "https://www.gutenberg.org/ebooks/"+i+".epub.images";
        window.open(link, "_blank");
};

// https://www.gutenberg.org/ebooks/150.epub.images --> sample link

The approach that I’m looking at is to open multiple new tabs and wait for each one to download the epub file. However, this only downloads the first book and doesn’t continue to the next one.

I already researched on how to open multiple new tabs and on how to download multiple items at once but nothing works. I’m afraid they’re already depreciated since those answers was 5+ years ago.