It's in the functions tab on the right hand panel. Should be at the bottom if I remember correctly. It shuts down your ship and cannibalizes functional modules to repair broken ones and as such should only be used in emergencies or when no one is shooting at you.
For more casual repair fly to a starport, or consider equipping an automated field maintenance unit.