You know where the opponents are. The difficulty is to get close enough to them so the spell will help in combat, and to cast the spell before they detect you.
So you would like to close on the enemy, then cast tiny hut for example, as a way to gain a tactical advantage.
I think your spells are examples of preparing favorable terrain. Sure, you could use spells, but digging trenches or throwing up walls would have the same general effect.
Tiny hut is problematic because it takes so long, so it will only work in limited situations.
Don't take the favorable terrain to the enemy, bring the enemy to the favorable terrain
Prep your terrain, then lure the enemy.
This could be as simple as retreating until you reach your favorably prepared terrain.
This can be ideal because you can conceivably have significant time to prepare, from a minute to cast tiny hut to much longer for more elaborate preparations.
Limitations: you need to know ahead of time when and where the battle will be; you need to lure the enemy.
You might be able to use illusion to disguise what's going on or create a distraction.
Major image could give you an obscuring illusion, such as of a herd of cattle or similar, to obscure the sight and sound of your caster. Alternatively, you might be able to create an illusion to focus their attention elsewhere. A "dragon" attacking might give you a round or two to prepare terrain.
Hallucinatory terrain might be able to confuse the enemy enough that while they may hear the caster, they can't see them.
Limitations: Costs spells, you may not have these spells available. Maybe the enemy will catch on.
Get someone else (either in the party or not) to attack them from the other side. Maybe they'll the too busy to attack you.
Limitations: Requires the cooperation of someone else. And maybe they won't be too busy to attack you.
Time stop is made for this. You get 2-5 turns to prep your terrain.
Limitations: 9th level spell, and if it were available to you, maybe you have better options. Roll badly and you just burned your slot for a measly 2 rounds of prep.
No tactic will work in every situation, and this is no different. But these might be situationally useful.