When using a using a terminal app to send code, you won't have modules autoloaded by default, but that shouldn't be your issue with the Wifi module as that is built in.
Are you saying that you get undefined returned from this?
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
@user74461
var wifi = require("Wifi");
wifi.getStatus();
```