The Whitham modulation equations for the defocusing nonlinear Schrödinger (NLS) equation in two and three spatial dimensions are derived using a two-phase ansatz for the periodic traveling wave solutions and by period-averaging the conservation laws of the NLS equation. The resulting Whitham modulation equations are written in vector form, which allows one to show that they preserve the rotational invariance of the NLS equation, as well as the invariance with respect to scaling and Galilean transformations, and to immediately generalize the calculations from two spatial dimensions to three. The transformation to Riemann-type variables is described in detail; the harmonic and soliton limits of the Whitham modulation equations are explicitly written down; and the reduction of the Whitham equations to those for the radial NLS equation is explicitly carried out. Finally, the extension of the theory to higher spatial dimensions is briefly outlined. The multidimensional NLS-Whitham equations obtained here may be used to study large amplitude wavetrains in a variety of applications including nonlinear photonic and matter waves.