tell application "System Events"
if exists (window 1 of process "Notification Center")
if exists (button "Close" of window 1 of process "Notification Center")
click button "Close" of window 1 of process "Notification Center"
end if
end if
end tell