Most bakers swear by unsalted butter for baking cookies. I don’t usually have unsalted butter on hand and usually use salted. You can use either, just keep in mind that if you use unsalted butter you’ll want to add some salt to the dough yourself (up to 1 teaspoon), and if you use salted butter you will only need to add a pinch or maybe none at all.