@fatimaag , where and how to deal with the entries on 1042-S , depends on the type of income. Would it be possible for you to contact the issuer of the 1042-S and ask them to send you the correct form ( 1099-INT, -DIV etc.), because that should have been done once you have become a "Resident for Tax Purposes" I am assuming g here that you were previously on F or similar visa and now have had status change to a work visa ( YES? ).
Which country are you from and which treaty article are you asserting ?
Else, you essentially create dummy 1099-INT or DIV or whatever ( using the box wise data from the 1042-S ) That should work.
I will circle back once I hear from you