You could do either, as long as it's not in blue or purple or other pretty colour
I would advise typing it if possible, you can fit more in and make it much clearer and easier to read for the person reading it. Unless your writing is super-neat and you don't need to say much so you can space it out very well and make it very easy on the eye, typing is better.
And definitely don't handwrite a covering letter.