Error: Cannot use import statement outside a module
I am following the tutorial here:
https://docs.apify.com/academy/puppeteer-playwright/common-use-cases/downloading-files
But I keep getting this error:
My code:
Is the import statement supposed to go somewhere else? I'm using the code editor in the actor console. I've seen someone else mention putting
"type":"module" in package.json, but I don't see anywhere to edit package.json in the actor console.Can you LMK how to import fs, so I can read the downloaded file? Thank you!

