подскажите, пожалуйста, что не так делаю?
//functions.js
export const init = (term) => {
term('Welcome to the mining game!');
term.clear();
term.hideCursor();
term.grablnput();
}
//gameEngine.js
import { init } from './functions.js';
import { handleKeyPress } from './handlers.js';
export const startMiningGame = (term, state) => {
init(term);
term.on("key", handleKeyPress(term, state));
}