(Un)pin everything

I would like to be able to pin (or unpin) all currently open tabs at once. I would place command for this next to the current “Close all” button.