A single import that brings the server core into scope, along with everything from fivem.shared.Core.

import fivem.server.Core;

class ServerMain {
    static function main() {
        Players.onJoined(player -> Logger.info("join", player.name));

        Callbacks.register("garage:spawn", (source, args) -> {
            var player = Player.fromSource(source);
            if (player == null) return 0;

            var vehicle = Vehicle.create(args[0], player.coords, player.ped.heading);
            player.ped.warpIntoVehicle(vehicle);
            return vehicle.netId;
        });
    }
}

Everything here is a plain type alias, so this costs nothing at runtime. Note that Entity, Ped and Vehicle refer to the wrapper classes in fivem.server.core, not the native externs — import those explicitly (and preferably aliased) if you need both in one file.