Here is a test of code :
import { TNY360 } from 'tny-360';
const robot = new TNY360('192.168.1.42')
console.log("Connecting to robot...");
const success = await robot.connect();
if (success) {
console.log("Robot connected");
} else {
console.log("Robot not connected");
}