Saving a text file on streamer's pc through user interactions with the extension?

No.

An extension is literally just HTML/JS/CSS that is hosted on Twitch’s CDN, it has no acccess to anyone’s file system

You will need a local program installed on the Streamers Computer to capture events from your EBS, and write the text file