To obtain the topologically twisted version, we then do an additional step. TheThe theory has a global $R$-symmetry, meaning that all fields also transform in representations of thissome group Lie Group $G_{R}$, and hence may be viewed as sections of vector bundles. $G_{R}$ also has the important property that enters the supersymmetry algebra non-trivially, with the supercharges also in representations of $G_{R}$.
To obtain the topologically twisted version, we now do an additional step utilizing $G_{R}$. We then activate a connection (called an $R$ gauge field) for this group$G_{R}$ and covariantize derivatives with respect to this connection as well.
If $M$ is flat, then the spin connection on $M$ is trivial so the second step does nothing, and the twisted theory on $M$ is the same as the ordinary untwisted onetheory on $M$.