Add ts node typings, fix compile error in reflecta.ts, fix endianness of imu samples