I booked my tim car for two hours but now I only need it for one hour. Can I return it earlier?

Of course. Go to the booking platform under “current trip” (“aktuelle Fahrt”) and then click on “end trip” (“Fahrt beenden”). You will then only be charged for the hour(s) that you actually used.