JSZip is not defined

I'm trying to use this topic to zip up a bunch of images and download the zip to my machine:

However when running the following line in a "JS Code (javascrip)" resource

let zip = new JSZip();

I get this error

JSZip is not defined

How can I import JSZip()?

In the app settings you can import the lib there:

Thanks