A.) Habitats and sealed communities along with all the heating, radiation mitigation, life support systems, etc. along with the infrastructure to support farming and all other necessary activities hardened for the harsh environment.
B.) Putting the correct mixture of gases into the atmosphere to warm the planet, protect against radiation, CO2 for plants to breathe and make the air pressure high enough to allow for liquid water.
I genuinely don't know. It seems to me like at a certain population it would be cheaper to do B rather than have an enormous population along with all the farms and whatnot they need in large steel and glass domes. For what it's worth Mars seems to have all the necessary raw ingredients for terraforming except for nitrogen or some other filler gas for the atmosphere.
Nice kurzgesagt video: https://www.youtube.com/watch?v=uqKGREZs6-w
If we manage to terraform mostly using robots and bacteria that would be so much easier.