  We present a theory and calculations of the nuclear magnetic shielding with
finite nuclear mass effects and determine magnetic moments of deuteron and
triton using the known NMR spectra of HD and HT molecules. The results $\mu_d =
0.857\,438\,234\,6(53)\;\mu_N$ and $\mu_t = 2.978\,962\,471(10)\;\mu_N$ are
more accurate and in a good agreement with the currently accepted values.
