Logout only once k6

Hi,

I need help to logout only once from my test. I captured the cookies , but not sure how to iterate them and pass it to my logout end point.

My scenario:
login all users-only once
Perform multiple actions
Logout at the end of the test.

Regards
Jay