How to use Javascript to download LARGE file from Firebase storage?

I want to write JS code that downloads a large audio file from Firebase storage. The audio file must download to disk, not start playing in the browser.

I got it working for small files using this StackOverflow answer, which is based off of Firebase’s documentation. But this solution, along with many other solutions that I’ve found, involve downloading the entire file first as a Blob, which is infeasible for files that don’t fit in memory.

So my question is: How can I use JS to download large files from Firebase storage in the browser?