Hi @Jonas_Dylan,
You an import the library and use it like this:
From your workflow, click the libraries button, then the + to add a library.
Search for exceljs
and check the box next to it. That'll make it available. Then in your code, add the following to the top (above your function in this case)
const ExcelJS = require('exceljs');
That should make it available.