NIR is preferred due to greater tissue penetration depth / less attenuation. Visible light does not pass through tissue (it is absorbed, otherwise people would be transparent) at an appreciable length scale so it would not reach the NPs to induce photothermal heating. NIR light penetrates further and therefore can induce photothermal heating below the skin, although the penetration depth will vary with wavelength.