Use a business closing and sign your name. Above all, be professional. If the you’re sending a physical letter, print it out and sign it by hand. Otherwise, just typing your name will do.
You put your own reputation on the line when you write a letter of recommendation. If you feel you do not know the person well enough, or they are somebody you cannot in good conscience recommend, decline their request.