The usage of CoffeeScript and TypeScript are the same as Less and Sass.
Once you have the engines installed, the related file extension will be avaiable when you are creating a script file.
Or you can then use the engine in the HTML tag attribute.
<script engine='coffeescript'> number = 42 opposite = true number = -42 if opposite </script>
Please see the charpter of Less, Sass, Scss for more information.