I would like to open and close form with a node web application like this code (setAcceptingResponses), I am using googleapis npm and I don´t know how I can do something similar because in doc nothing appears about that in nodejs. If someone knows the request or the solution I would appreciate to know it.

I have tried to batchUpdate the form but I can´t find the request needed
As of now, checking available resources using Google Forms API, there isn't any feature yet available to directly open / close a Google Form. You can submit a feature request here instead.
SUGGESTION:
If not, a workaround that is currently possible is using Google Apps Script API instead to run an Apps Script function using Node.js. You can check this reference article or a quickstart guide on how to setup Apps Script API.
So the concept would be, using the code you presented as a sample above can be initiated using the Apps Script API.
Reference: https://developers.google.com/apps-script/api/concepts