An easily-implemented modulus-squared Dirichlet (MSD) boundary condition is formulated for numerical simulations of time-dependent complex partial di erential equations in multidimensional settings. The MSD boundary condition approximates a constant modulus-square value of the solution at the boundaries. Application of the MSD boundary condition to the nonlinear Schrodinger equation is shown, and numerical simulations are performed to demonstrate its usefulness.