How to import other files in redwood console?

Latest update, require works on ts files!!!
To import ts file into the console, you just do const {default: WhatsAppBusinessAPI} = require('api/src/lib/api_clients/whatsapp'). This whatsapp file is a whatsapp.ts file.