Tropospheric ozone (O3) is the third most important anthropogenic greenhouse gas after carbon dioxide (CO2) and methane (CH4). Ozone absorbs infrared radiation (heat) from the Earth's surface, reducing the amount of radiation that escapes to space.
Nitrogen dioxide is infrared active and absorbs IR re-radiated from the Earth, as seen in the spectral plots available here:
However, its short atmospheric residence time means that its emissions have little heat-trapping ability, so it is rarely considered as a greenhouse gas: