Tokyo stocks closed higher for an eighth straight day on Thursday as tech firms tracked healthy gains in their US peers, though advances were tempered by profit-taking elsewhere.