Recognising good night in fast conversation
The final s of a syllable can become a light breath or disappear in Chilean Spanish, particularly in relaxed speech. You may consequently hear something closer to buena noche than the complete written phrase. This is a pronunciation pattern, not an instruction to change the spelling. Listen for the stressed BWEH and NOH sounds instead of trying to identify every consonant.
Familiar speech is not one fixed formula
Chile has informal forms associated with voseo, the use of verb forms linked historically to vos. You may even hear these alongside tú. Their social meaning depends on familiarity and situation, so a learner need not imitate them to sound friendly. The standard tú wish que duermas bien is a useful choice with someone you know. For a more distant relationship, a neutral buenas noches avoids committing you to a particular personal form of address.
Ending a conversation without ending the evening
After a night out in Santiago or a visit with friends, the people you leave may have plans to continue their evening. In that case, there is no reason to talk about sleep. A brief buenas noches is sufficient. When a companion says they are going to bed, duerme bien becomes a much better fit. If you have arranged breakfast or another outing, adding hasta mañana also gives the farewell a practical purpose by acknowledging the next meeting.