There are no overnight layovers allowed at NRT without entering Japan. Because of corona, tourists cannot enter, so the answer is it won't work.
https://www.ana.co.jp/asw/topinfo/in...fo_tool_flag=1
On the other hand, it might be possible at Haneda, the other Tokyo airport. You need to check with your carrier.