JS SDK: `fetchConversationDetails` cursor pagination vs page number

The Genesys Cloud JS SDK fetchConversationDetails returns a nextPage cursor, but the REST spec also supports pageNumber. I need to fetch all records in a batch without managing the cursor state manually. Is there a helper in the current SDK version that handles this, or do I have to loop through nextPage until it’s null? The cursor approach feels verbose for large datasets.