Are you talking about Typescript the programming language, that 's just plain text in the file? If so, rename the file to .txt to edit it, then rename it back to use it. (Or install
Text Editor - you can look around the phone and open any file with that. [Of course, opening a zip file will give you garbage, but opening a .js file or a Typescript file will work.])
If you're talking about Typescript the printing language, you'll have to find an app that handles TS files - opening a file like that in a text editor will show you garbage.