How to unzip a file using javascript that is in base64 format

I have base64 string that is a zip file. I need to extract the file the zip file and to do so I was trying to utilize a library noted in an answer here on stackoverflow called fflate:

    attachmentsFlat.forEach(async (attachment) => {
  attachment = await emailStore.getAttachment(props.mailbox, attachment.email_id, attachment.id)
  if(attachment.file_name.split('.').pop() ==  'zip') {

    const decompressed = fflate.decompressSync(attachment.content_bytes);
    console.log(decompressed)
  }

However, this results in an error:

fflate.js?v=2017d673:285 Uncaught (in promise) TypeError: dat.subarray is not a function
at inflt (fflate.js?v=2017d673:285:21)
at inflateSync (fflate.js?v=2017d673:1103:10)
at Module.decompressSync (fflate.js?v=2017d673:1421:160)
at EmailFilesAssignment.vue:150:37

If this library does not work I am open to other libraries that can take base64 and unzip the files. I just cannot find many example of unzip files but more so zipping and using base64 is a special example I cannot find.