An hour and a half should be good for baby back ribs covered in foil at 375 degrees. Larger ribs, like spare ribs, should cook for two hours uncovered at 350 degrees F.
Wrapping ribs in foil locks in moisture, helping to tenderize the meat and keep it from drying out. Unwrapped ribs don’t get this benefit, which is why they need to be cooked less.