Typescript

First stab at comment blocks for the typescript language. Comments and improvements welcome.
(Note that this includes a separate fix for line doubling that was also proposed by aaronhendry.)