Even if you're not close with your boss, chances are you have a working, first_name_basis relationship. Maintaining that in your official letter is okay. You don't need to keep a Victorian level of formality here__just make sure it's a professional tone.
The Hand_off. Finally, state your willingness to help out with the transition. You don't need to go into great detail (and definitely don't promise anything you can't deliver), but a couple of lines stating that you'll ensure a smooth wrap_up of your duties will show that you're in the game until the very end. Obviously, feel free to adjust this a bit based on your experience and your company culture, then submit it via the typical procedures at your company.