TS related Lua Scripts