Repairing ships
To repair a damaged ship, your fleet needs to be stationary; in orbit around an astro with repair ships or a friendly base (allied or your own).
Each repair tick (every 5 minutes) will fix your ships a bit (200$*[repair tech level] credits for the base, 10$*[repair tech level] credits for each repair ship).
A simple example, you have a Dreadnought damaged 50% in orbit one of your bases, where you have 10 repair ships and your repair tech is level 1.
Each damage point costs half the original ship price to be repaired
Then 50% damaged costs 10000/2*50%=2500$ to be fixed
Every 5 minutes, your repair capacity will be (200*1) + 10*(10*1)=300 credits
It will take 8.3 (9 actual) ticks to repair the Dread
You can check each fleets repair capacity in the Fleet Overview page, that page also shows each damaged ship, the cost to repair and how many ticks.