Tech shares helped Wall Street indexes notch ​record closing levels overnight, and gains by Japanese companies linked to the artificial intelligence boom ​were enough to give the Nikkei an early advance.