Save request response payload as file in Network tab

I’ve had a scenario where I would want to save the response payload as a file (for example, server sent a csv file with all needed headers including a filename) - I have no access to the file because it is requested from a JS script, so the browser doesn’t show the download dialog. When I open the Network tab I see the request and see that it has been fulfilled. I click on it and go to the response tab and see only a base64 representation of the file.

I would like if Firefox could see that it’s a file response and shown a “Save as” button in the request’s Response tab.
Or really, it would be nice if it could also save other responses like xhr (Save a JSON response as a json file, not HAR)