We consider the cubic nonlinear Schrödinger equation posed on the spatial domain R×Td. We prove modified scattering and construct modified wave operators for small initial and final data respectively (1≤d≤4). The key novelty comes from the fact that the modified asymptotic dynamics are dictated by the resonant system of this equation, which sustains interesting dynamics when d≥2. As a consequence, we obtain global solutions to the defocusing and focusing problems on R×Td (for any d≥2) with infinitely growing high Sobolev norms Hs.